﻿using NFine.Data;
using NFine.Domain._03_Entity.Weixin;
using NFine.Domain._04_IRepository.Weixin;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NFine.Repository.Weixin
{
    public class WechatInfoRepository : RepositoryBase<WechatInfoEntity>, IWechatInfoRepository
    {

        public async Task<int> InsertAsync(WechatInfoEntity entity)
        {
            this.dbcontext.Entry<WechatInfoEntity>(entity).State = EntityState.Added;
            return await dbcontext.SaveChangesAsync();
        }

    }
}
